/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 燃料消耗记录
 *
 * @author pigx code generator
 * @date 2022-11-24 17:37:06
 */
@Data
@TableName("fuel_consume")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "燃料消耗记录")
public class FuelConsume extends Model<FuelConsume> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 消耗的燃油数量
     */
    @ApiModelProperty(value="消耗的燃油数量")
    private BigDecimal fuelQuantity;

    /**
     * 产生燃料的类型
     */
    @ApiModelProperty(value="产生燃料的类型")
    private String type;

	/**
	 * 毛利润
	 */
	@ApiModelProperty(value="毛利润")
	private BigDecimal grossProfit;

	/**
	 * 净利润
	 */
	@ApiModelProperty(value="净利润")
	private BigDecimal netProfit;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Long userId;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

	/**
	 * 策略名称
	 */
	@ApiModelProperty(value="策略名称")
    private String strategyName;

	/**
	 * 订单id
	 */
	@ApiModelProperty(value="订单id")
    private Long orderId;

}
